package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.PurchaseCount;
import com.atguigu.jxc.entity.PurchaseList;
import com.atguigu.jxc.entity.PurchaseListGoods;
import com.atguigu.jxc.entity.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @description 供应商
 */
public interface PurchaseListGoodsDao {

    Integer savePurchaseList(@Param("purchaseList") PurchaseList purchaseList);

    Integer savePurchaseListGoods(@Param("purchaseListGoods") PurchaseListGoods purchaseListGoods);

	List<PurchaseList> selectPurchaseList(String purchaseNumber, Integer supplierId, Integer state, String sTime, String eTime);

	List<PurchaseListGoods> goodsList(@Param("purchase_list_goods_id") Integer purchaseListId);

	Integer delete(@Param("purchase_list_id") Integer purchaseListId);

	Integer updateState(@Param("purchaseListId")Integer purchaseListId);

	List<PurchaseCount> count(@Param("sTime") String sTime,@Param("eTime") String eTime,
	                          @Param("goodsTypeId") Integer goodsTypeId, @Param("codeOrName") String codeOrName);
}
